Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

76
Views
Tengo esta tabla donde tengo varias columnas. Los dos últimos son pegajosos (clase "es-pegajoso"). Quiero aplicar algunos estilos a la primera columna pegajosa.
<td> ...</td>
...
...
...
<td class="is-sticky">...</td> <-- want to apply style here
<td class="is-sticky">...</td> <-- no styles here

En el código anterior. Probablemente haya varias columnas pegajosas después de la primera. Pero el estilo que quiero agregar es solo para la primera columna.

almost 4 years ago · Santiago Trujillo
3 answers
Answer question

0

CSS puro : seleccione cada elemento de la clase que sea hermano de la misma clase> inviértalo y seleccione la clase nuevamente.

 :not(.is-sticky ~ .is-sticky).is-sticky {
 color: red;
}
 <table>
 <tr>
 <td> .asdasd..</td>
 <td class="is-sticky">.. Frist .</td>
 <td class="is-sticky">... Second</td>
 <td class="is-sticky">... Third</td>
 </tr>
</table>

almost 4 years ago · Santiago Trujillo Report

0

Puede agregar múltiples clases a un elemento como este

 <td class="is-sticky yourCSSClass">
almost 4 years ago · Santiago Trujillo Report

0

agregue otra clase a la primera "class ="is-sticky first-column"

Luego, en css, puede llamar fácilmente solo a la primera columna.

 .first-column .is-sticky {
 color: white;
 etc;
}
almost 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!